# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'superbatchmodeform.ui'
#
# Created: Fr Aug 26 22:36:44 2005
#      by: The PyQt User Interface Compiler (pyuic) 3.13
#
# WARNING! All changes made in this file will be lost!


from qt import *


class superbatchmodeform(QDialog):
    def __init__(self,parent = None,name = None,modal = 0,fl = 0):
        QDialog.__init__(self,parent,name,modal,fl)

        if not name:
            self.setName("superbatchmodeform")


        superbatchmodeformLayout = QGridLayout(self,1,1,11,6,"superbatchmodeformLayout")

        layout4 = QVBoxLayout(None,0,6,"layout4")

        self.groupBox1 = QGroupBox(self,"groupBox1")
        self.groupBox1.setColumnLayout(0,Qt.Vertical)
        self.groupBox1.layout().setSpacing(6)
        self.groupBox1.layout().setMargin(11)
        groupBox1Layout = QGridLayout(self.groupBox1.layout())
        groupBox1Layout.setAlignment(Qt.AlignTop)

        layout2 = QHBoxLayout(None,0,6,"layout2")
        spacer2 = QSpacerItem(141,21,QSizePolicy.Expanding,QSizePolicy.Minimum)
        layout2.addItem(spacer2)

        self.startButton = QPushButton(self.groupBox1,"startButton")
        layout2.addWidget(self.startButton)

        self.stopButton = QPushButton(self.groupBox1,"stopButton")
        self.stopButton.setEnabled(0)
        layout2.addWidget(self.stopButton)

        groupBox1Layout.addLayout(layout2,3,0)

        self.filelistBox = QListBox(self.groupBox1,"filelistBox")

        groupBox1Layout.addWidget(self.filelistBox,1,0)

        layout8 = QHBoxLayout(None,0,6,"layout8")

        self.addButton = QPushButton(self.groupBox1,"addButton")
        layout8.addWidget(self.addButton)

        self.removeButton = QPushButton(self.groupBox1,"removeButton")
        layout8.addWidget(self.removeButton)

        self.loadButton = QPushButton(self.groupBox1,"loadButton")
        layout8.addWidget(self.loadButton)

        self.saveButton = QPushButton(self.groupBox1,"saveButton")
        layout8.addWidget(self.saveButton)

        self.clearButton = QPushButton(self.groupBox1,"clearButton")
        layout8.addWidget(self.clearButton)
        spacer1 = QSpacerItem(20,21,QSizePolicy.Expanding,QSizePolicy.Minimum)
        layout8.addItem(spacer1)

        groupBox1Layout.addLayout(layout8,2,0)

        self.textLabel1 = QLabel(self.groupBox1,"textLabel1")

        groupBox1Layout.addWidget(self.textLabel1,0,0)
        layout4.addWidget(self.groupBox1)

        self.groupBox2 = QGroupBox(self,"groupBox2")
        self.groupBox2.setColumnLayout(0,Qt.Vertical)
        self.groupBox2.layout().setSpacing(6)
        self.groupBox2.layout().setMargin(11)
        groupBox2Layout = QGridLayout(self.groupBox2.layout())
        groupBox2Layout.setAlignment(Qt.AlignTop)

        self.loggingBox = QListBox(self.groupBox2,"loggingBox")
        #self.loggingBox.setSizePolicy(QSizePolicy(7,5,0,0,self.loggingBox.sizePolicy().hasHeightForWidth()))

        groupBox2Layout.addWidget(self.loggingBox,0,0)
        layout4.addWidget(self.groupBox2)

        superbatchmodeformLayout.addLayout(layout4,0,0)

        layout5 = QHBoxLayout(None,0,6,"layout5")
        spacer3 = QSpacerItem(391,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
        layout5.addItem(spacer3)

        self.closeButton = QPushButton(self,"closeButton")
        layout5.addWidget(self.closeButton)

        superbatchmodeformLayout.addLayout(layout5,1,0)

        self.languageChange()

        self.resize(QSize(600,383).expandedTo(self.minimumSizeHint()))
        #self.clearWState(Qt.WState_Polished)

        self.connect(self.closeButton,SIGNAL("clicked()"),self.close)
        self.connect(self.clearButton,SIGNAL("clicked()"),self.filelistBox.clear)


    def languageChange(self):
        self.setCaption(self.__tr("SuperBatchMode"))
        self.groupBox1.setTitle(self.__tr("SuperBatchMode..."))
        self.startButton.setText(self.__tr("Start SuperBatchModeMeasuring"))
        self.stopButton.setText(self.__tr("Stop"))
        self.addButton.setText(self.__tr("Add file (to list)"))
        self.removeButton.setText(self.__tr("remove file (from list)"))
        self.loadButton.setText(self.__tr("load list"))
        self.saveButton.setText(self.__tr("save list"))
        self.clearButton.setText(self.__tr("clear list"))
        self.textLabel1.setText(self.__tr("Choose some pyvLab-savefiles (.pyv), these files will be loaded and measuring started."))
        self.groupBox2.setTitle(self.__tr("Logging..."))
        self.closeButton.setText(self.__tr("Close"))


    def __tr(self,s,c = None):
        return qApp.translate("superbatchmodeform",s,c)
